package com.lftea.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import com.lftea.dao.ITeaDAO;
import com.lftea.po.Tea;
import com.lftea.service.ITeaService;

@Service("teaServiceImpl")
@RemotingDestination
public class TeaServiceImpl implements ITeaService {

	@Resource(name = "teaDAOImpl")
	private ITeaDAO teaDAOImpl;

	@RemotingInclude
	public List<Tea> findAll() {
		return teaDAOImpl.findAll();
	}

	@RemotingInclude
	public Tea findById(long teaId) {
		return teaDAOImpl.findById(teaId);
	}

	@RemotingInclude
	public void remove(Tea tea) {
		teaDAOImpl.remove(tea);
	}

	@RemotingInclude
	public void save(Tea tea) {
		teaDAOImpl.save(tea);
	}

}
